﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TrainStation.TrainModules
{
    public class PassengerWagon : ITrainWagon
    {
        public double MaxSpeed { get; set; }
        public int PassengerCount { get; set; }
        public int MaxPassengerCount { get; set; }
        public Train Train { get; set; }

        public PassengerWagon()
        {
            MaxPassengerCount = 20;
            MaxSpeed = 300;
            Length = 5;
        }

        public double Weight
        {
            get { return  5 + (0.1 * PassengerCount ); }
        }

        public int Length { get; set; }
    }
}
